package net.kong.sns.rest.client;

/**
 * @author <a href="mailto:lanhuai@gmail.com">Ning Yubin</a>
 * @author Wang Yuanming
 * @version $Id: ErrorResponseImpl.java,v 1.2.2.1 2009/12/21 09:38:31 wangyuanming Exp $
 */
public class ErrorResponseImpl implements ErrorResponse {

    private int errorCode;
    private String errorConstant;
    private String errorMsg;

    public ErrorResponseImpl(int errorCode, String errorConstant, String errorMsg) {
        this.errorCode = errorCode;
        this.errorConstant = errorConstant;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorConstant() {
        return errorConstant;
    }

    public void setErrorConstant(String errorConstant) {
        this.errorConstant = errorConstant;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
